package cn.iocoder.yudao.module.xhyy.controller.app.knowledge.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "用户 APP - 知识点新增/修改 Request VO")
@Data
public class AppKnowledgeSaveReqVO {

    @Schema(description = "唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "19804")
    private String id;

    @Schema(description = "知识点名称", example = "张三")
    private String knowName;

    @Schema(description = "章节")
    private Integer chapter;

    @Schema(description = "绑定的教材", requiredMode = Schema.RequiredMode.REQUIRED, example = "2227")
    @NotNull(message = "绑定的教材不能为空")
    private Integer bookId;

    @Schema(description = "年级")
    private Integer grade;

    @Schema(description = "书籍名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "书籍名称不能为空")
    private String bookName;

    @Schema(description = "资源地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "资源地址不能为空")
    private String knowUrl;

}